<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>供应商信息编辑</title>
</head>
<link rel="stylesheet" type="text/css" href="/wms/js/plugins/jquery-easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/wms/js/plugins/jquery-easyui/themes/icon.css">
<script type="text/javascript" src="/wms/js/plugins/jquery-easyui/jquery.min.js"></script>
<script type="text/javascript" src="/wms/js/plugins/jquery-easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/wms/js/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="/wms/js/common/common.js"></script>
<script type="text/javascript">
/*校验规则*/
$(function() {
	$(":input[name='supplier.name']").textbox({
		required:true,
		missingMessage:'名称必填'
	});
	$(":input[name='supplier.phone']").textbox({
		required:true,
		missingMessage:'电话必填'
	});
	$(":input[name='supplier.address']").textbox({
		required:true,
		missingMessage:'地址必填'
	});
});
</script>
<body>

	<s:if test="hasActionErrors()">
		<script type="text/javascript">
			$.messager.alert('操作提示', '<s:property value="actionErrors[0]"/>', 'error');
		</script>
	</s:if>
	<form id="editForm" method="POST" action="/wms/supplier_saveOrUpdate.action">
		<s:hidden name="supplier.id"/>
		<table style="table-layout:fixed;">
			<tr>
				<td width="90px">供应商名称</td>
				<td><s:textfield name="supplier.name"/></td>
			</tr>
			<tr>
				<td>联系电话</td>
				<td><s:textfield name="supplier.phone"/></td>
			</tr>
			<tr>
				<td>地址</td>	
				<td><s:textfield name="supplier.address"/></td>
			</tr>
			<tr>
				<td></td>
				<td>
					<a class="easyui-linkbutton" data-options="text:'保存',iconCls:'icon-ok',onClick:saveOrUpdate"></a>
					<a class="easyui-linkbutton" data-options="text:'取消',iconCls:'icon-cancel',onClick:cancel"></a>
				</td>
			</tr>
			
		</table>
		<br />
	</form>

</body>
</html>
